import { PrismaClient } from "@prisma/client";
import { NextResponse } from "next/server";

export const GET = async () => {
    
    const prisma = new PrismaClient()
    const data = await prisma.user_setting.findFirst();

    return NextResponse.json(JSON.stringify(data?.theme));
}